home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
MRAC
/
Lengths
/
Modify
/
l-rest-condense
< prev
next >
Wrap
Lisp/Scheme
|
1998-08-11
|
410b
|
17 lines
l-rest-condense length-pattern
This function condenses a sequence of rests-lengths into the sum of its parts.
(setq len '(-1/20 -1/20 1/20 -1/20 -1/20))
(setq len1 (l-rest-condense len))
=> (-1/10 1/20 -1/10)
(l-rest-revert len)
=> (1/20 1/20 1/20 1/20 1/20)
(l-rest-revert len1)
=> (1/10 1/20 1/10)
(l-rest-condense '((-1/20 -1/20 1/20 -1/20 -1/20) (1/8 -1/16 -1/16)))
=> ((-1/10 1/20 -1/10) (1/8 -1/8))